﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010E5 RID: 4325
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneReviveAfterRebattleCsReq : IMessage<SceneReviveAfterRebattleCsReq>, IMessage, IEquatable<SceneReviveAfterRebattleCsReq>, IDeepCloneable<SceneReviveAfterRebattleCsReq>, IBufferMessage
	{
		// Token: 0x170036D4 RID: 14036
		// (get) Token: 0x0600C197 RID: 49559 RVA: 0x0020C305 File Offset: 0x0020A505
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneReviveAfterRebattleCsReq> Parser
		{
			get
			{
				return SceneReviveAfterRebattleCsReq._parser;
			}
		}

		// Token: 0x170036D5 RID: 14037
		// (get) Token: 0x0600C198 RID: 49560 RVA: 0x0020C30C File Offset: 0x0020A50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneReviveAfterRebattleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036D6 RID: 14038
		// (get) Token: 0x0600C199 RID: 49561 RVA: 0x0020C31E File Offset: 0x0020A51E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneReviveAfterRebattleCsReq.Descriptor;
			}
		}

		// Token: 0x0600C19A RID: 49562 RVA: 0x0020C325 File Offset: 0x0020A525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleCsReq()
		{
		}

		// Token: 0x0600C19B RID: 49563 RVA: 0x0020C32D File Offset: 0x0020A52D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleCsReq(SceneReviveAfterRebattleCsReq other) : this()
		{
			this.rebattleType_ = other.rebattleType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C19C RID: 49564 RVA: 0x0020C352 File Offset: 0x0020A552
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneReviveAfterRebattleCsReq Clone()
		{
			return new SceneReviveAfterRebattleCsReq(this);
		}

		// Token: 0x170036D7 RID: 14039
		// (get) Token: 0x0600C19D RID: 49565 RVA: 0x0020C35A File Offset: 0x0020A55A
		// (set) Token: 0x0600C19E RID: 49566 RVA: 0x0020C362 File Offset: 0x0020A562
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RebattleType RebattleType
		{
			get
			{
				return this.rebattleType_;
			}
			set
			{
				this.rebattleType_ = value;
			}
		}

		// Token: 0x0600C19F RID: 49567 RVA: 0x0020C36B File Offset: 0x0020A56B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneReviveAfterRebattleCsReq);
		}

		// Token: 0x0600C1A0 RID: 49568 RVA: 0x0020C379 File Offset: 0x0020A579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneReviveAfterRebattleCsReq other)
		{
			return other != null && (other == this || (this.RebattleType == other.RebattleType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C1A1 RID: 49569 RVA: 0x0020C3A8 File Offset: 0x0020A5A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RebattleType != RebattleType.None)
			{
				num ^= this.RebattleType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C1A2 RID: 49570 RVA: 0x0020C3ED File Offset: 0x0020A5ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C1A3 RID: 49571 RVA: 0x0020C3F5 File Offset: 0x0020A5F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C1A4 RID: 49572 RVA: 0x0020C3FE File Offset: 0x0020A5FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RebattleType != RebattleType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.RebattleType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C1A5 RID: 49573 RVA: 0x0020C430 File Offset: 0x0020A630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RebattleType != RebattleType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.RebattleType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C1A6 RID: 49574 RVA: 0x0020C46E File Offset: 0x0020A66E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneReviveAfterRebattleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RebattleType != RebattleType.None)
			{
				this.RebattleType = other.RebattleType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C1A7 RID: 49575 RVA: 0x0020C49F File Offset: 0x0020A69F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C1A8 RID: 49576 RVA: 0x0020C4A8 File Offset: 0x0020A6A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.RebattleType = (RebattleType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04004E3C RID: 20028
		private static readonly MessageParser<SceneReviveAfterRebattleCsReq> _parser = new MessageParser<SceneReviveAfterRebattleCsReq>(() => new SceneReviveAfterRebattleCsReq());

		// Token: 0x04004E3D RID: 20029
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E3E RID: 20030
		public const int RebattleTypeFieldNumber = 6;

		// Token: 0x04004E3F RID: 20031
		private RebattleType rebattleType_;
	}
}
